package cn.edu.zafu.bigdata.lyq;

public class Book {
    //书名、作者、价格
    private String title;
    private String author;
    private double price;
    //
    public Book(String title,String author,double price){
        this.title=title;
        this.author=author;
        this.price=price;
    }
    @Override
    public String toString(){
        return "Book[title=" + title + ",author=" + author +",price=" + price +"]";
    }
    public String gettitle(){
        return  title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
